{% extends 'easydisAPSBundle::base_template.html.twig' %}

{% block stylesheets %}
    <link rel="stylesheet" href="{{ asset('bundles/easydisAPS/css/css-template/uniform.css') }}" />
    <link rel="stylesheet" href="{{ asset('bundles/easydisAPS/css/css-template/select2.css') }}" />
{% endblock %}

{% block scripts %}
    <script src="{{ asset('bundles/easydisAPS/js-template/jquery.min.js') }}"></script> 
    <script src="{{ asset('bundles/easydisAPS/js-template/custom.js') }}"></script> 
    <script src="{{ asset('bundles/easydisAPS/js-template/bootstrap.min.js') }}"></script> 
    <script src="{{ asset('bundles/easydisAPS/js-template/jquery.uniform.js') }}"></script> 
    <script src="{{ asset('bundles/easydisAPS/js-template/select2.min.js') }}"></script> 
    <script src="{{ asset('bundles/easydisAPS/js-template/jquery.dataTables.min.js') }}"></script> 
    <script src="{{ asset('bundles/easydisAPS/js-template/maruti.js') }}"></script> 
    <script src="{{ asset('bundles/easydisAPS/js-template/maruti.tables.js') }}"></script>
    
{% endblock %}

{% block contenu %}

{% for flashMessage in app.session.flashbag.get('notice') %}
    {% if flashMessage %}
            <div class="notice">
                    {{ flashMessage }}
                    <br/><br/>
            </div>
    {% endif %}
{% endfor %}

<div class="row-fluid">
    <div class="span12">
        <div class="widget-box">
          <div class="widget-title">
             <span class="icon"><i class="icon-th"></i></span> 
            <h5>Liste des salariés</h5>
          </div>
          <div class="widget-content nopadding">
            <table class="table table-bordered data-table">
              <thead>
                <tr>
                  <th>Matricule</th>
                  <th>NOM</th>
                  <th>Prenoms</th>
                  <th>Section</th>
                  <th>Status</th>
                </tr>
              </thead>
              <tbody>
                {% for tab in tabResult %}
                      <tr class="gradeA">
                        <td>{{ tab[0] }}</td>
                        <td>{{ tab[1] }}</td>
                        <td>{{ tab[2] }}</td>
                        <td class="center">{{ tab[3] }}</td>
                        <td>{{ tab[4] }}</td>
                      </tr>
                {% endfor %}
              </tbody>
            </table>
          </div>
        </div>
    </div>
</div>
{% endblock %}